import request from '@/utils/request'

// 查询广告信息 列表
export function listAdvertising(query) {
  return request({
    url: '/travel/advertising/list',
    method: 'get',
    params: query
  })
}

// 删除景区图片
export function delImg(data) {
  return request({
    url: '/travel/advertising/delImg',
    method: 'post',
    data: data
  })
}

// 查询广告信息 详细
export function getAdvertising(id) {
  return request({
    url: '/travel/advertising/' + id,
    method: 'get'
  })
}

// 新增广告信息 
export function addAdvertising(data) {
  return request({
    url: '/travel/advertising',
    method: 'post',
    data: data
  })
}

// 修改广告信息 
export function updateAdvertising(data) {
  return request({
    url: '/travel/advertising',
    method: 'put',
    data: data
  })
}

// 删除广告信息 
export function delAdvertising(id) {
  return request({
    url: '/travel/advertising/' + id,
    method: 'delete'
  })
}

// 导出广告信息 
export function exportAdvertising(query) {
  return request({
    url: '/travel/advertising/export',
    method: 'get',
    params: query
  })
}